package com.gjy.pd.factorysimple;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-12-15 09:22:18
 */
public abstract class SimpleFactory {

    public static SimpleProduct getProduct(Class<? extends SimpleProduct> clazz) {
        try {
            return clazz.newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
